package com.lhj.springboot3.robot.service;

import com.lhj.springboot3.robot.properties.RobotProperties;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Description
 * @Author lhj
 * @Date 2024/7/6 17:11
 */
@Service
public class RobotService {

    @Autowired
    RobotProperties robotProperties;

    public String helloRobot() {
        return String.format("Hello %s age %s", robotProperties.getName(), robotProperties.getAge());
    }
}
